//
//  XPBaseHeaderFooterView.swift
//  PPKit
//
//  Created by iosdevmac201 on 2020/11/25.
//  Copyright © 2020 scoresdata.net. All rights reserved.
//

import UIKit

class XPBaseHeaderFooterView: UITableViewHeaderFooterView {

    class func header(tableView:UITableView) -> Self {
        var header = tableView.deqHeader(h: self)
        if header == nil {
            header = self.init(id: reuseId())
            header!.backgroundColor = pp_color(.CFFFFFF)
            header!.contentView.backgroundColor = pp_color(.CFFFFFF)
            header!.createUI()
        }
        return header!
    }
    
    func createUI() {
        //子类重写
    }
    
    required init(id: String?) {
        super.init(reuseIdentifier: id)
    }
    
    required init?(coder aDecoder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
